package com.game.worm.mobile.view.http;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * Created by d_xxiang on 2018/3/29.
 */

public interface IHttpServices {
    String home = "app/homePage";
    String details = "game/details/";
    String tagGameList = "app/gamesByTag/";
    String typeGameList = "app/gamesByType/";
    String hotList = "app/hotList/";
    String newList = "app/newList/";
    String singleList = "app/singleList/";
    String webList = "app/webList/";
    String tags = "/app/tags";

    @POST
    Call<ResponseBody> doPost(
            @Url String url,
            @Body RequestBody requestBody
    );

    @GET
    Call<ResponseBody> doGet(
            @Url String url
    );

}
